<?php
	$sql = "SELECT * FROM HOIVIEN, CHUCVU, TAIKHOAN, CHIHOI WHERE HOIVIEN.MACV=CHUCVU.MACV AND HOIVIEN.MAHV=TAIKHOAN.MAHV AND HOIVIEN.MACH=CHIHOI.MACH AND HOIVIEN.MAHV='".$_SESSION['mahv']."'";
	$result=mysqli_query($con,$sql);
	$row=mysqli_fetch_array($result);
?>
<div>
	 <span class='thongbao' ><h6><strong><?php if(isset($_GET['result'])) echo $_GET['result']; ?></strong></h6></span>
	<fieldset>
			<table id='thongtintk'>
				<tr class='legend'>
						<td colspan="2" align="center" >Thông tin tài khoản</td>
					</tr>
				<tr>
					<td class='firstcol'>Tên tài khoản</td><td><?php echo $row['ID']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Mã hội viên</td><td><?php echo $row['MAHV']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Họ tên</td><td><?php echo $row['HOTEN']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Chi hội </td><td><?php echo $row['TENCH']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Chức vụ</td><td><?php echo $row['CHUCVU']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Ngành</td><td><?php echo $row['NGANH']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Khoa</td><td><?php echo $row['KHOA']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Địa chỉ</td><td><?php echo $row['DIACHI']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Email</td><td><?php echo $row['EMAIL']  ?></td>
				</tr>
				<tr>
					<td class='firstcol'>Số điện thoại</td><td><?php echo $row['SDT']  ?></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
					<button type="button" onclick=<?php echo "window.location.href='TaiKhoan.php?content=doimatkhau'"; ?> >Đổi mật khẩu</button>
					<button type="button" onclick=<?php echo "window.location.href='TaiKhoan.php?content=capnhattt&mahv=$_SESSION[mahv]'"; ?> >Cập nhật</button>
					</td>
				</tr>
			</table>
	</fieldset>
</div>